<#include "/jsp/common/head.html">
    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>用户管理页面 >> 角色权限修改页面</span>
        </div>
        <div class="providerAdd">
        ${message!}
        <form id="userForm" name="userForm" method="post" action="${request.contextPath }/jsp/rolemodify.do">
			<input type="hidden" name="id" value="${role.id! }"/>
			 <div>
                    <label for="roleName">角色名称：</label>
                    <input type="text" name="roleName" id="roleName" value="${role.roleName! }"> 
					<font color="red"></font>
             </div>
				<div>
                    <label >角色权限：</label>
                    <!-- 列出所有的权限 -->
					<#if permissionList??>
					   <#list permissionList as perm>
					   		<input type="checkbox" name="permission" value="${perm.id!}" <#list permissions as p><#if perm.id==p.permId>checked</#if></#list>>${perm.name!}
					   </#list>
					</#if>
        			<font color="red"></font>
                </div>
			 <div class="providerAddBtn">
                    <input type="submit" name="save" id="save" value="保存" />
                    <input type="button" id="back" name="back" value="返回"/>
                </div>
            </form>
        </div>
    </div>
</section>
<#include "/jsp/common/foot.html">
